package com.yc.taixin.model;


import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@SuppressWarnings("serial")
@Entity
@Table(name = "t_s_yuyue")
@org.hibernate.annotations.Table(appliesTo = "t_s_yuyue", comment = "车辆预约信息表")
public class TSYuyue extends IdEntity implements Serializable {

	private String realname;
	private String mobile;
	private String restime;  //预约时间
	private String userId;
	private String carType;
	private Integer ii;  //时间段,如0代表08:00-09:00
	private Integer process;  //预约进程,如待受理
	private Integer serverItem; //服务项目  以后再弄多对一关系
	private String serverName; //服务名称
	private String price;  //单价  从客户端获取不安全
	private Integer num;  //预约数量
	private Integer paystatus;  //付款状态 0/1
	private String paytype;  //付款类型
	private Date createDate;  //创建时间

	@Column(columnDefinition = "varchar(32) DEFAULT NULL COMMENT '顾客真实名称'")
	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	@Column(columnDefinition = "varchar(32) DEFAULT NULL COMMENT '手机号码'")
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	@Column(columnDefinition = "int DEFAULT NULL COMMENT '服务项目'")
	public Integer getServerItem() {
		return serverItem;
	}


	public void setServerItem(Integer serverItem) {
		this.serverItem = serverItem;
	}

	@Column(columnDefinition = "varchar(32) DEFAULT NULL COMMENT '服务名称'")
	public String getServerName() {
		return serverName;
	}

	public void setServerName(String serverName) {
		this.serverName = serverName;
	}

	@Column(columnDefinition = "varchar(50) DEFAULT NULL COMMENT '预约时间'")
	public String getRestime() {
		return restime;
	}

	public void setRestime(String restime) {
		this.restime = restime;
	}

	@Column(columnDefinition = "varchar(32) DEFAULT NULL COMMENT '预约时用户id'")
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Column(columnDefinition = "varchar(32) DEFAULT NULL COMMENT '车辆类型'")
	public String getCarType() {
		return carType;
	}

	public void setCarType(String carType) {
		this.carType = carType;
	}

	@Column(columnDefinition = "int DEFAULT NULL COMMENT '时间段,如0代表08:00-09:00'")
	public Integer getIi() {
		return ii;
	}

	public void setIi(Integer ii) {
		this.ii = ii;
	}

	@Column(columnDefinition = "int DEFAULT NULL COMMENT '预约进程,如待受理'")
	public Integer getProcess() {
		return process;
	}

	public void setProcess(Integer process) {
		this.process = process;
	}

	@Column(columnDefinition = "int DEFAULT NULL COMMENT '预约数量'")
	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}


	@Column(columnDefinition = "varchar(32) DEFAULT NULL COMMENT '服务项目单价'")
	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	@Column(columnDefinition = "int DEFAULT NULL COMMENT '付款状态'")
	public Integer getPaystatus() {
		return paystatus;
	}

	public void setPaystatus(Integer paystatus) {
		this.paystatus = paystatus;
	}


	@Column(columnDefinition = "varchar(32) DEFAULT NULL COMMENT '付款类型'")
	public String getPaytype() {
		return paytype;
	}

	public void setPaytype(String paytype) {
		this.paytype = paytype;
	}

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Temporal(TemporalType.TIMESTAMP)
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@Column(columnDefinition = "datetime DEFAULT NULL COMMENT '创建时间'")
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

}
